import pytest
import os
from mail import send_mail
from log import testw
if __name__ == '__main__':
    testw()
    pytest.main(['-s', 'wdds.py', "--alluredir=./报告数据", "--clean-alluredir"])
    os.system("allure generate ./报告数据 -o ./测试报告 --clear")
    send_mail(['weidudianshanglog521.txt','./测试报告/index.html'])
